#// Lab 3: Employee.cpp
// Employee class member-function definitions.
#include <iostream>
using std::cout;

#include "Employee.h" // Employee class definition

/* Define the constructor. Assign each parameter value to the appropriate data
   member. Write code that validates the value of salary to ensure that it is
   not negative. */
Employee::Employee(string firstname1, string lastname1, int monthlysalary1)
{
	firstname = firstname1;
	lastname = lastname1;
	monthlysalary = monthlysalary1;
}
   /* Define a set function for the first name data member. */
string Employee::getEmployeeFirstName()
{
	return firstname;
}
   /* Define a get function for the first name data member. */
string Employee::getEmployeeLastName()
{
	return lastname;
}
   /* Define a set function for the last name data member. */
void Employee::setEmployeeFirstName(string FirstName1)
{
	firstname = FirstName1;
}
   /* Define a get function for the last name data member. */
void Employee::setEmployeeLastName(string LastName1)
{
	lastname = LastName1;
}
   /* Define a set function for the monthly salary data member. Write code
	  that validates the salary to ensure that it is not negative. */
void Employee::setEmployeeMonthlySalary()
{
	monthlysalary = monthlysalary + 0.1 * monthlysalary;
}
	  /* Define a get function for the monthly salary data member. */
int Employee::getEmployeeMonthlySalary()
{
	return 12 * monthlysalary;
}
